package dshop.model;

import java.util.List;

import appbase.jfinal.ext.BaseModel;

public class Login extends BaseModel<Login>{
	
	private static final long serialVersionUID = -6967680902549117464L;
	
	public static final Login dao = new Login();

	
	/**
	 * @return { id, access_token }
	 */
	public static List<Login> listBy(int accountId) 
	{
		return dao.findByColumns("id, access_token", "account_id", accountId);
	}


	public static void deleteBy(int loginId) 
	{
		dao.deleteById(loginId);
	}

	


}
